import ReactDOM from "react-dom/client";
// import App from "./App";
import "./index.css";

// 导入 RouterProvider 和 createBrowserRouter
import { RouterProvider } from "react-router-dom";
// 导入路由配置
import router from "./router/index";

// 仓库导入
import store from "./store/index";
import { Provider } from "react-redux";

// 引入 antd 语言包
import zhCN from "antd/locale/zh_CN";
import "dayjs/locale/zh-cn";

import { ConfigProvider } from "antd";

ReactDOM.createRoot(document.getElementById("root")).render(
  <ConfigProvider locale={zhCN}>
    {/* <React.StrictMode> */}
    <Provider store={store}>
      {/* 注入路由  */}
      {/* <App /> */}
      <RouterProvider router={router}></RouterProvider>
    </Provider>
    {/* </React.StrictMode> */}
  </ConfigProvider>
);
